const total = 10

const courses = [
  {
    course: {
      id: 1,
      name: '课程1',
    },
    wordSummary: {
      totalNum: 100,
      shorthandNum: 50,
      completed: false,
      status: 1,
    },
  },
]

for (let i = 0; i < total; i++) {
  courses.push({
    course: {
      id: i + 1,
      name: `课程${i + 1}`,
    },
    wordSummary: {
      totalNum: 100,
      shorthandNum: 50,
      completed: false,
      status: 1,
    },
  })
}

export default function () {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        code: 0,
        message: 'success',
        data: {
          studentId: 1,
          courses: [],
        },
      })
    })
  })
}
